package com.wjq.randomplay.adapter;

import android.view.View;
import android.widget.TextView;

import com.wjq.randomplay.R;
import com.wjq.randomplay.base.BaseViewHolder;

/**
 * Created by WJQ on 2017/2/3.
 */
public class CityListVH extends BaseViewHolder<String> {
    TextView mTvCityName;

    public CityListVH(View itemView) {
        super(itemView);
        mTvCityName = (TextView) itemView.findViewById(R.id.tv_name);
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_city_list;
    }

    @Override
    public void onBindViewHolder(View view, int position, String item) {
        mTvCityName.setText(item);
    }
}
